module.exports = (db) => {
    const { INTEGER, STRING, CHAR, BIGINT, BOOLEAN, TEXT, TINYINT } = require('sequelize').Sequelize
    const Categorie = db.define('categorie', {
        id: {
            type: TINYINT(3).UNSIGNED,
            primaryKey: true,
            allowNull: false,
            autoIncrement: true,
            unique: true,
            comment: '分类ID',
        },
        name: {
            type: STRING(50),
            allowNull: false,
            comment: '分类名称',
            defaultValue: ''
        },
        created_at: {
            type: BIGINT,
            allowNull: false,
            comment: '分类添加时间',
            defaultValue: 0
        },
    }, {
        timestamps: false,
    });
    return Categorie;
}